package com.comment.api;

import com.comment.common.RestfulResult;
import com.comment.dto.CommentDTO;
import com.comment.dto.CommentRequest;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author vedeng
 * @className BlogCommentApi
 * @description:
 * @date 2022/2/21 14:04
 */
public interface BlogCommentApi {

    /**
     * @description:  添加评论
     * @param: [commentRequest]
     * @return: com.comment.common.RestfulResult
     * @author vedeng
     * @date: 2022/2/21 14:10
     */
    @RequestMapping("/comment/addComment")
    RestfulResult addComment(@RequestBody CommentRequest commentRequest);




    /**
     * @description: 评论列表
     * @param: [commentRequest]
     * @return: java.util.List<com.comment.dto.CommentDTO>
     * @author vedeng
     * @date: 2022/2/21 15:31
     */
    @RequestMapping("/comment/queryAllComment")
    List<CommentDTO> queryAllComment(@RequestBody CommentRequest commentRequest);
}